|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCollectPositionData
public class CollectPositionData
CollectPositionData records the simulated positions of the victim receiver and the levels of the wanted and unwanted signals. It gives the option to show the location distribution combined with dRSS, C/I, C(I+N) as well as the location probability. It does not change any simulated result.
To draw the figures it uses the class StdDraw. For documentation, see Section 1.5 of Introduction to Programming in Java: An Interdisciplinary Approach, Spring 2007 preliminary version and http://www.cs.princeton.edu /introcs/15inout
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.seamcat.model.plugin.PostProcessingPlugin |
|---|
org.seamcat.model.plugin.PostProcessingPlugin.ParameterType |
| Field Summary | |
|---|---|
private int |
countVector
|
private java.util.Vector<java.lang.String> |
criterion
|
private int |
criterionIndex
|
private int |
currentEvent
|
private org.seamcat.model.plugin.PluginDistribution |
defaultDistribution
|
private java.lang.String |
defaultPath
|
private java.text.DecimalFormat |
df
|
private java.lang.String |
filename
|
private java.lang.String |
header
|
private double |
locationProbability
|
private double |
maxDistance
|
private double |
minDRSS
|
private boolean |
multipleLinks
|
private double |
noiseFloor
|
private java.awt.Color |
notAffected
|
private double[] |
oneShot
|
private java.util.Vector<java.lang.String> |
outputFigure
|
private int |
outputFigureIndex
|
private java.util.Vector<java.lang.String> |
outputFormat
|
private int |
outputFormatIndex
|
private java.lang.String |
pathToSave
|
private java.util.Vector<java.awt.Color> |
rainbow
|
private double |
rCoverI
|
private double |
rCoverN
|
private double |
rIoverN
|
private java.util.Vector<java.lang.Double> |
rLP
|
private org.seamcat.model.plugin.Transceiver |
rWt
|
private boolean |
sholdShowCalculatedResults
|
private boolean |
shouldBeSaved
|
private java.util.Vector<CollectedData> |
simulatedResults
|
private double |
simulationRadius
|
private CollectedData |
singleResult
|
private java.lang.String |
sNotAffected
|
private double |
STDDEV
|
private double |
stddevInterferer
|
private int |
totalEvents
|
private boolean |
useEBU
|
| Constructor Summary | |
|---|---|
CollectPositionData()
|
|
| Method Summary | |
|---|---|
private void |
calculateLocationProbability(org.seamcat.model.plugin.ScenarioInfo scenario)
calculates the location probability of a pixel and collects is on a vector |
boolean |
check(org.seamcat.model.plugin.ScenarioInfo scenario)
|
void |
cleanUp()
|
private void |
defineRainbowColors()
defines colours for scaling |
private void |
drawCoverIColored(org.seamcat.model.plugin.ScenarioInfo scenario)
shows a colour scaled distribution of C/I |
private void |
drawCoverNplusI_Colored(org.seamcat.model.plugin.ScenarioInfo scenario)
shows a colour scaled distribution of C/(N+I) |
private void |
drawDRSS_Colored(org.seamcat.model.plugin.ScenarioInfo scenario)
draws a colour scaled map of the dRSS distribution |
private void |
drawLocationProbability(org.seamcat.model.plugin.ScenarioInfo scenario)
shows a colour scaled distribution of the dRSS location probability |
private void |
drawPixelsAffected(org.seamcat.model.plugin.ScenarioInfo scenario)
shows pixels not affected, interfered and not interfered |
private void |
drawScaling(double lowest,
double max,
double distance,
double reference,
java.lang.String s)
|
java.util.Vector<java.lang.String> |
getAllowedParameterValues(int index)
|
private java.awt.Color |
getColor(double value,
double range)
|
private java.awt.Color |
getColorGreen(double value,
double range)
|
private java.awt.Color |
getCororNotAffected(java.lang.String color)
mainly a place marker |
private double |
getCoverImultiple(org.seamcat.model.plugin.ScenarioInfo scenario,
int i)
|
private double |
getCoverNplusI(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private double |
getCriterionLimit()
|
java.lang.String |
getDescription()
|
private double |
getHighestCoverI()
|
private double |
getHighestCoverN()
|
private double |
getHighestDRSS()
|
private double |
getIoverN(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private boolean |
getLimitExceeded(int i)
|
private double |
getLocationProbabilityFactor(double x)
this method is taken from the propagation model P1546-3 |
private double |
getLowestCoverI()
|
private double |
getLowestCoverN()
|
private double |
getLowestDRSS()
|
private double |
getLowestLPnotZero()
|
private double |
getMaxLP()
|
private double |
getMinPL()
|
private double |
getNoiseFloor(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private int |
getNumberAffected(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private double |
getNumberInterfered(org.seamcat.model.plugin.ScenarioInfo scenario)
|
int |
getNumberOfParameters()
|
private int |
getNumberOfPixelsEmpty(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private int |
getNumberOfPixelsInterfered(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private double |
getNumberOfPixelsLP(org.seamcat.model.plugin.ScenarioInfo scenario)
|
java.lang.String |
getParameterName(int id)
|
org.seamcat.model.plugin.PostProcessingPlugin.ParameterType |
getParameterType(int id)
|
java.lang.Object |
getParameterValue(int id)
|
private double |
getPercentageSevenTrials(double deltaFactor2)
this method has been derived from a so called iterative approach |
private int |
getPixelStatus(org.seamcat.model.plugin.ScenarioInfo scenario,
int j)
|
private boolean |
getUseEBU()
|
void |
init(org.seamcat.model.plugin.ParameterFactory param)
|
private void |
initPlugin(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private void |
initWorkspace(org.seamcat.model.plugin.ScenarioInfo scenario)
|
void |
process(org.seamcat.model.plugin.ScenarioInfo scenario)
method called after each snapshot = the 'heart' of the plugin :) |
private void |
readDRSS(org.seamcat.model.plugin.ScenarioInfo scenario)
adds the dRSS to the current row |
private void |
readIRSS(org.seamcat.model.plugin.ScenarioInfo scenario)
adds the iRSS and the index of the interfering link to the table; in case more than one interfering link exist the values for event, x, y and dRSS are copied |
private void |
readPosition(org.seamcat.model.plugin.ScenarioInfo scenario)
adds the current event number and the positions x and y of the victim to the current row; oneShot[] collects the values of event, x, y and dRSS which are not changed in case different interfering links have to be considered |
private void |
saveResults(org.seamcat.model.plugin.ScenarioInfo scenario)
stores the generated table as text file |
private void |
saveResultsXML()
saveResultsXML stores the result as XML file |
private void |
scaleFigure()
defines the size and scales the graph |
void |
setParameterValue(int id,
java.lang.Object value)
|
private void |
setUseEBU(boolean useEBU)
|
private void |
showResults(org.seamcat.model.plugin.ScenarioInfo scenario)
|
private void |
showSimulatedResults(org.seamcat.model.plugin.ScenarioInfo scenario)
shows a message with simulated results |
private void |
storeDTD()
storeDTD generates the DTD needed for the above XML file to that path the result has been saved |
private void |
storeResults(org.seamcat.model.plugin.ScenarioInfo scenario)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.seamcat.model.plugin.PluginDistribution defaultDistribution
private java.lang.String filename
private java.lang.String defaultPath
private java.lang.String pathToSave
private boolean shouldBeSaved
private java.util.Vector<java.lang.String> outputFormat
private java.util.Vector<java.lang.String> outputFigure
private java.util.Vector<java.lang.String> criterion
private int outputFormatIndex
private int outputFigureIndex
private int criterionIndex
private int currentEvent
private int totalEvents
private double[] oneShot
private java.lang.String header
private int countVector
private double maxDistance
private org.seamcat.model.plugin.Transceiver rWt
private CollectedData singleResult
private java.util.Vector<CollectedData> simulatedResults
private boolean multipleLinks
private double noiseFloor
private double rCoverN
private double rCoverI
private double rIoverN
private double simulationRadius
private double locationProbability
private java.util.Vector<java.lang.Double> rLP
private double minDRSS
private double STDDEV
private double stddevInterferer
private java.text.DecimalFormat df
private java.awt.Color notAffected
private java.lang.String sNotAffected
private java.util.Vector<java.awt.Color> rainbow
private boolean sholdShowCalculatedResults
private boolean useEBU
| Constructor Detail |
|---|
public CollectPositionData()
| Method Detail |
|---|
public void init(org.seamcat.model.plugin.ParameterFactory param)
init in interface org.seamcat.model.plugin.PostProcessingPluginpublic void cleanUp()
cleanUp in interface org.seamcat.model.plugin.PostProcessingPluginpublic java.lang.String getDescription()
getDescription in interface org.seamcat.model.plugin.PostProcessingPlugin
public void process(org.seamcat.model.plugin.ScenarioInfo scenario)
throws java.lang.Exception
process in interface org.seamcat.model.plugin.PostProcessingPluginjava.lang.Exceptionprivate void initPlugin(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void initWorkspace(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void storeResults(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario -
private void showResults(org.seamcat.model.plugin.ScenarioInfo scenario)
throws java.lang.Exception
scenario -
java.lang.Exceptionprivate void setUseEBU(boolean useEBU)
public int getNumberOfParameters()
getNumberOfParameters in interface org.seamcat.model.plugin.PostProcessingPluginpublic org.seamcat.model.plugin.PostProcessingPlugin.ParameterType getParameterType(int id)
getParameterType in interface org.seamcat.model.plugin.PostProcessingPlugin
public void setParameterValue(int id,
java.lang.Object value)
setParameterValue in interface org.seamcat.model.plugin.PostProcessingPluginpublic java.lang.Object getParameterValue(int id)
getParameterValue in interface org.seamcat.model.plugin.PostProcessingPluginpublic java.lang.String getParameterName(int id)
getParameterName in interface org.seamcat.model.plugin.PostProcessingPluginpublic boolean check(org.seamcat.model.plugin.ScenarioInfo scenario)
check in interface org.seamcat.model.plugin.ConsistencyCheckpublic java.util.Vector<java.lang.String> getAllowedParameterValues(int index)
getAllowedParameterValues in interface org.seamcat.model.plugin.PostProcessingPluginprivate void readPosition(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void readDRSS(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void readIRSS(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario -
java.lang.Exceptionprivate double getNoiseFloor(org.seamcat.model.plugin.ScenarioInfo scenario)
private void saveResults(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void saveResultsXML()
private void storeDTD()
private void calculateLocationProbability(org.seamcat.model.plugin.ScenarioInfo scenario)
throws java.lang.Exception
scenario -
java.lang.Exceptionprivate boolean getUseEBU()
private double getMaxLP()
private double getMinPL()
private int getPixelStatus(org.seamcat.model.plugin.ScenarioInfo scenario,
int j)
scenario - j - current pixel ID
private void showSimulatedResults(org.seamcat.model.plugin.ScenarioInfo scenario)
throws java.lang.Exception
scenario -
java.lang.Exceptionprivate double getNumberInterfered(org.seamcat.model.plugin.ScenarioInfo scenario)
private double getNumberOfPixelsLP(org.seamcat.model.plugin.ScenarioInfo scenario)
private int getNumberAffected(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario -
private int getNumberOfPixelsEmpty(org.seamcat.model.plugin.ScenarioInfo scenario)
throws java.lang.Exception
scenario -
java.lang.Exceptionprivate int getNumberOfPixelsInterfered(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario -
private void defineRainbowColors()
private void drawCoverIColored(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void drawCoverNplusI_Colored(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void drawDRSS_Colored(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void drawLocationProbability(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario - private void drawPixelsAffected(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario -
private void drawScaling(double lowest,
double max,
double distance,
double reference,
java.lang.String s)
lowest - max - distance - reference - if zero: ignoreds - = dimension of the parameter, e.g. % for probability
private java.awt.Color getColor(double value,
double range)
value - to be scaledrange - of scaling
private java.awt.Color getColorGreen(double value,
double range)
value - to be scaledrange - of scaling
private java.awt.Color getCororNotAffected(java.lang.String color)
color -
private double getCoverImultiple(org.seamcat.model.plugin.ScenarioInfo scenario,
int i)
scenario - i - pixel to be checked
private double getCoverNplusI(org.seamcat.model.plugin.ScenarioInfo scenario)
throws java.lang.Exception
scenario -
java.lang.Exceptionprivate double getCriterionLimit()
private double getHighestCoverI()
private double getHighestCoverN()
private double getHighestDRSS()
private double getIoverN(org.seamcat.model.plugin.ScenarioInfo scenario)
scenario -
private boolean getLimitExceeded(int i)
i - index of current location
private double getLocationProbabilityFactor(double x)
throws java.lang.Exception
x - locationProbability
java.lang.Exceptionprivate double getLowestCoverI()
private double getLowestCoverN()
private double getLowestDRSS()
private double getLowestLPnotZero()
private void scaleFigure()
private double getPercentageSevenTrials(double deltaFactor2)
deltaFactor2 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||